const Router = require('koa-router')
const router = new Router({ prefix: '/users' }) //定义路由前缀

const {register,login} =require("../controller/user.controller") //引入用户处理模块的方法
router.post('/register', register);
router.post('/login', login);
router.get("/test",(ctx,next)=>{
    ctx.body="你好haohao"
})

module.exports = router